package com.wf.day_0615.decorators;

/**
 * @author mpk
 * @since 2024/6/15 14:58:14
 */
public class Test {
    public static void main(String[] args) {


        FiredRice firedRice = new FiredRice();

        System.out.println(firedRice.getDesc() + ":" + firedRice.cost());

        Eggs eggs = new Eggs(firedRice);
        System.out.println(eggs.getDesc() + ":" + eggs.cost());

        Eggs eggs1 = new Eggs(eggs);
        System.out.println(eggs1.getDesc() + ":" + eggs1.cost());
    }


}
